package cn.tangsihai.shoptrolley.domain;

import cn.tangsihai.basic.domain.BasicDomain;
import cn.tangsihai.org.domain.Shop;
import cn.tangsihai.pet.domain.Pet;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class ShopCart extends BasicDomain{
    // 宠物在购物车中的状态
    // 待购买
    public static final long WAIT_PAY = 1;
    // 已移除
    public static final long DELETEED = 0;

    private Long state;
    private Long petId;
    private Long shopId;
    private String name;
    private BigDecimal saleprice;
    private String resources;
    private String type;
    private Long logininfoId;
    // 对象接收数据
    private Pet pet;
    private Shop shop;
    private List<ShopCart> shopCart = new ArrayList<>();
}
